package com.xxbb.chapter_10.main_frame;

import javax.swing.*;

import com.xxbb.chapter_10.base_frame.BaseJFrame;
import com.xxbb.chapter_10.base_panel.BaseJPanel;

import java.awt.*;

public class MainFrameTest extends JFrame {
    public MainFrameTest() {
        BaseJFrame frame = new BaseJFrame(400, 300, "学生信息管理系统").setJPanel(getJPanel()).setCenterWindow().showWindow();
    }

    public JComponent getJPanel() {
        JMenuBar jMenuBar = new JMenuBar();

        BaseJPanel baseJPanel = new BaseJPanel();
        baseJPanel.add(jMenuBar);

        return baseJPanel;
    }

}
